import fetch from 'common/src/utils/fetch';

export function getList(data) {
    return fetch({
        url: '/api/designservice/pro/change/audit/list',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}

export function auditData(data) {
    return fetch({
        url: '/api/designservice/pro/change/audit/audit',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}


export function batchData(data) {
    return fetch({
        url: '/api/designservice/pro/change/audit/batch',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}

export function exportData(data) {
    return fetch({
        url: '/api/designservice/pro/change/audit/export',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}



export function detail(id,type) {
    return fetch({
        url: '/api/designservice/pro/change/detail?id='+id+"&type="+type,
        method: 'get',
        headers: { 'Content-Type': 'application/json' },
    });
}
